package com.example.demo_01.controller;

import com.example.demo_01.service.DeptService;
import com.example.demo_01.util.ResultBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/DeptController")
public class DeptController {
    @Autowired
    private DeptService deptService;
    @RequestMapping("/findAll")
    public ResultBean findAll(){
        return deptService.findAll();
    }
}
